package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs=new Student("张三",24,"上海","jsd2302","007");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();
        Doctor ls=new Doctor("李四",35,"上海","主治医师");
        ls.sayHi();
        ls.cut();
        Teacher ww=new Teacher("王五",50,"北京",8000);
        ww.sayHi();
        ww.teach();
    }
}
